package live.jialing.sip.base.rest;

import io.swagger.annotations.Api;
import live.jialing.core.web.controller.SimpleBaseRestController;
import live.jialing.core.web.paging.DataTableReturnObject;
import live.jialing.core.web.paging.PageUtil;
import live.jialing.sip.base.domain.Squad;
import live.jialing.sip.base.service.ClassService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * 班级接口
 */
@Api(value = "ClassRestController", description = "班级接口")
@RestController
@RequestMapping(value = "/school/classes")
public class ClassRestController extends SimpleBaseRestController<Squad, Long> {

    private static Logger logger = LoggerFactory.getLogger(ClassRestController.class);

    @Resource
    private ClassService classService;

    @Override
    public ClassService getService() {
        return this.classService;
    }

    @Override
    public DataTableReturnObject findPage(HttpServletRequest request, PageUtil pageUtil) {
        return super.findPage(request, pageUtil);
    }
}
